import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class NumberTest2 {

	String test = "";

	@Test
	public void testConvertTo() {
		int a = 10;
		int b = 2;
		String first;
		String second;

		first = Number.convertTo(a, b);
		second = Number.convertTo(b, a);
		assertEquals(first, "1010");
		assertNotNull(first);
		assertEquals(first, second);
		assertNotSame(first, second);

		assertTrue(a > 0);
	}

	@Before
	public void przed() {
		test = Number.convertTo(10, 2);
	}

	@Test(expected = IllegalArgumentException.class)
	public void exceptionTest() {
		test = Number.convertTo(10, 20);

	}

	@Ignore
	@Test(timeout = 100)
	public void loop() {

		test = Number.convertTo(10, 2);

	}

	@After
	public void cleanAfter() {
		test = "";
	}

}
